'''
Created on Oct 11, 2010

@author: zarra
'''

import conf,os,sys
from auth import Auth
from direct import Direct
from utils import modify_base_url,javascript_url_page
sys.path.append('../')
import cherrypy

from cherrypy import expose
class Root(object):
    _cp_config = {'tools.gzip.on': True}
    def __init__(self):
        self.auth =  Auth()
        self.direct =Direct()
        self.utils = javascript_url_page()
        self.utils.exposed= True
    @expose
    @modify_base_url
    def login(self):

        f=file(os.path.join(conf.TEMPLATE_PATH,'login.html'))
        return f.read()
    @expose
    @modify_base_url
    def index(self):
        #doctor = quick_test_doctor()
        f=file(os.path.join(conf.TEMPLATE_PATH,'index.html'))
        return f.read()
    
    @expose
    @modify_base_url
    def drug_post(self):
        #doctor = quick_test_doctor()
        f=file(os.path.join(conf.TEMPLATE_PATH,'yao_ping_bu_liang_fan_yin_shang_bao.html'))
        return f.read()
    
    

    

    

    